package com.demo.transaction.repository.secondary.hello.mapper;

import com.demo.transaction.repository.secondary.hello.domain.SecondaryHello;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import javax.transaction.Transactional;
import java.util.List;

@Mapper
public interface SecondaryHelloMapper {

    List<SecondaryHello> list();

    int count();

    @Insert("INSERT INTO hello (`value`)VALUES(#{value})")
    void insert(String value);

    @Select("select * from hello where id=#{id}")
    SecondaryHello get(Integer id);
}
